package com.example.zx.theline.body;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.example.zx.theline.R;
import com.example.zx.theline.check.CheckActivity;
import com.example.zx.theline.usercenter.UserCenterActivity;

import base.BaseActivity;

public class BodyActivity extends BaseActivity {

    LinearLayout mJiHuaShenHe;
    LinearLayout mJianDuJianCha;
    LinearLayout mZhengShiJiHua;
    LinearLayout mYongHuZhongXin;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_body);
        InitView();
        InitData();
        InitListen();
    }

    @Override
    protected void InitView() {
        mJiHuaShenHe = (LinearLayout) findViewById(R.id.jihuashenhe);
        mJianDuJianCha = (LinearLayout) findViewById(R.id.jiandujiancha);
        mZhengShiJiHua = (LinearLayout) findViewById(R.id.zhengshijihua);
        mYongHuZhongXin = (LinearLayout) findViewById(R.id.yonghuzhongxin);

    }

    @Override
    protected void InitData() {

    }

    @Override
    protected void InitListen() {
        mJiHuaShenHe.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        mJianDuJianCha.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
             Intent mIntent=new Intent(BodyActivity.this, CheckActivity.class);
                startActivity(mIntent);
            }
        });
        mZhengShiJiHua.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        mYongHuZhongXin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent mIntent=new Intent(BodyActivity.this, UserCenterActivity.class);
                startActivity(mIntent);
            }
        });
    }
}
